package com.flesler.componentas.test.components
{
	import com.flesler.componentas.components.position.PositionComponent;
	import com.flesler.componentas.core.BaseComponent;
	import com.flesler.componentas.core.Entity;
	
	public final class PositionDisplayComponent extends BaseComponent
	{
		public function PositionDisplayComponent()
		{
		}
		
		public function tracePosition():void
		{
			var position:PositionComponent = entity.getByType(PositionComponent) as PositionComponent;
			trace('My position is', position.x, position.y);
		}
	}
}